import java.util.Scanner;

public class zhuce {
    public static void main(String[]asgs){
        Scanner in = new Scanner(System.in);
        System.out.println("请输入用户名");
        String yonghu = in.next();
        System.out.println("输入密码");
        char mima1 = in.next().charAt(0);
        System.out.println("输入密码");
        char mima2 = in.next().charAt(0);
        if (mima1==mima2){
            System.out.println("恭喜您，注册成功");
        }
        if (mima1!=mima2){
            System.out.println("对不起，您两次输入的密码不一致，请重新输入");
        }
    }
}
